[HVM][Firmware] Make the creation of MP tables more dynamic
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 28 Jun 2006 12:59:29 +0000 (13:59 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 28 Jun 2006 12:59:29 +0000 (13:59 +0100)
commitf5ea9f8ba8b505972219caff4cafcdcfe937a94c
tree111f956c4ac98ad6e1c672de25119bfaa995aa0d
parent38dbb81c1f239355e024e3580934030953ed825b
[HVM][Firmware] Make the creation of MP tables more dynamic

Currently the ROMBIOS includes static MP tables for only four
configurations: 1-way, 2-way, 4-way, and 8-way.

This patch makes the creation of MP tables more dynamic by creating them
from within HVMLOADER based upon the VCPU number provided by the HVM
information table.

Note: Some of the information included used to create the MP tables is
still hard coded and based upon values used in the original ROMBIOS MP
tables.  Data such as the CPU family/model/stepping information should
probably be made to match the information provided to the guest when
executing a CPUID.

Signed-off-by: Travis Betak <travis.betak@amd.com>
tools/firmware/hvmloader/Makefile
tools/firmware/hvmloader/acpi_madt.c
tools/firmware/hvmloader/hvmloader.c
tools/firmware/hvmloader/mp_tables.c [new file with mode: 0644]
tools/firmware/rombios/Makefile
tools/firmware/rombios/rombios.c